import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk'; // 使 redux 可异步的工具包
import { composeWithDevTools } from 'redux-devtools-extension';

import reducer from './reducers';
const store = createStore(reducer,composeWithDevTools(applyMiddleware(thunk)));

export default store;